using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._NetworkDiagramTools
{
    /// <summary>
    /// <para>Extend Diagram</para>
    /// <para>Extends a network diagram one network element level based on network connectivity or traversability or on containment or structural attachment associations.</para>
    /// <para>根据网络连通性或可遍历性，或者基于包含或结构附件关联，将网络逻辑示意图扩展一个网元级别。</para>
    /// </summary>    
    [DisplayName("Extend Diagram")]
    public class ExtendDiagram : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public ExtendDiagram()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_network_diagram_layer">
        /// <para>Input Network Diagram Layer</para>
        /// <para>The network diagram to extend.</para>
        /// <para>要扩展的网络图。</para>
        /// </param>
        public ExtendDiagram(object _in_network_diagram_layer)
        {
            this._in_network_diagram_layer = _in_network_diagram_layer;
        }
        public override string ToolboxName => "Network Diagram Tools";

        public override string ToolName => "Extend Diagram";

        public override string CallName => "nd.ExtendDiagram";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_network_diagram_layer, _ignore_traversability.GetGPValue(), _out_network_diagram_layer, _extension_type.GetGPValue()];

        /// <summary>
        /// <para>Input Network Diagram Layer</para>
        /// <para>The network diagram to extend.</para>
        /// <para>要扩展的网络图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network Diagram Layer")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Ignore traversability</para>
        /// <para><xdoc>
        ///   <para>Specifies whether traversability or connectivity is used to extend the diagram.
        ///   <para>This parameter was deprecated at ArcGIS Pro 2.2. It is systematically ignored regardless of its value when the extension_type parameter is specified. To maintain compatibility with models and Python scripts written at ArcGIS Pro 2.1, it remains enabled when the extension_type parameter is not specified.</para>
        ///   </para>
        ///   <bulletList>
        ///     <bullet_item>IGNORE_TRAVERSABILITY—The traversability of the network is ignored. This is the default.</bullet_item><para/>
        ///     <bullet_item>HONOR_TRAVERSABILITY —The traversability of the network is honored.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定是使用可遍历性还是连通性来扩展关系图。
        ///   <para>此参数在 ArcGIS Pro 2.2 中已弃用。指定 extension_type 参数时，无论其值如何，都会系统地忽略它。为了保持与在 ArcGIS Pro 2.1 中编写的模型和 Python 脚本的兼容性，在未指定 extension_type 参数时，该脚本将保持启用状态。</para>
        ///   </para>
        ///   <bulletList>
        ///     <bullet_item>IGNORE_TRAVERSABILITY - 忽略网络的可遍历性。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>HONOR_TRAVERSABILITY —尊重网络的可遍历性。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Ignore traversability")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _ignore_traversability_value _ignore_traversability { get; set; } = _ignore_traversability_value._true;

        public enum _ignore_traversability_value
        {
            /// <summary>
            /// <para>IGNORE_TRAVERSABILITY</para>
            /// <para>IGNORE_TRAVERSABILITY—The traversability of the network is ignored. This is the default.</para>
            /// <para>IGNORE_TRAVERSABILITY - 忽略网络的可遍历性。这是默认设置。</para>
            /// </summary>
            [Description("IGNORE_TRAVERSABILITY")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>HONOR_TRAVERSABILITY</para>
            /// <para>HONOR_TRAVERSABILITY —The traversability of the network is honored.</para>
            /// <para>HONOR_TRAVERSABILITY —尊重网络的可遍历性。</para>
            /// </summary>
            [Description("HONOR_TRAVERSABILITY")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Output Network Diagram</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network Diagram")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_network_diagram_layer { get; set; }


        /// <summary>
        /// <para>Extension Type</para>
        /// <para><xdoc>
        ///   <para>Specifies how the diagram will be extended.</para>
        ///   <bulletList>
        ///     <bullet_item>By connectivity—Extends the network diagram one network element level based on network connectivity. This is the default.</bullet_item><para/>
        ///     <bullet_item>By traversability—Extends the network diagram one network element level based on network traversability.</bullet_item><para/>
        ///     <bullet_item>By attachment—Extends the network diagram one network element level based on structural attachment associations.</bullet_item><para/>
        ///     <bullet_item>By containment—Extends the network diagram one network element level based on containment associations.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定关系图的扩展方式。</para>
        ///   <bulletList>
        ///     <bullet_item>按连通性 - 根据网络连通性将网络逻辑示意图扩展一个网元级别。这是默认设置。</bullet_item><para/>
        ///     <bullet_item>按可遍历性 - 基于网络可遍历性将网络逻辑示意图扩展一个网元级别。</bullet_item><para/>
        ///     <bullet_item>按附件 - 基于结构附件关联将网络逻辑示意图扩展一个网元级别。</bullet_item><para/>
        ///     <bullet_item>按包含 - 基于包含关联将网络逻辑示意图扩展一个网元级别。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Extension Type")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _extension_type_value _extension_type { get; set; } = _extension_type_value._BY_CONNECTIVITY;

        public enum _extension_type_value
        {
            /// <summary>
            /// <para>By connectivity</para>
            /// <para>By connectivity—Extends the network diagram one network element level based on network connectivity. This is the default.</para>
            /// <para>按连通性 - 根据网络连通性将网络逻辑示意图扩展一个网元级别。这是默认设置。</para>
            /// </summary>
            [Description("By connectivity")]
            [GPEnumValue("BY_CONNECTIVITY")]
            _BY_CONNECTIVITY,

            /// <summary>
            /// <para>By traversability</para>
            /// <para>By traversability—Extends the network diagram one network element level based on network traversability.</para>
            /// <para>按可遍历性 - 基于网络可遍历性将网络逻辑示意图扩展一个网元级别。</para>
            /// </summary>
            [Description("By traversability")]
            [GPEnumValue("BY_TRAVERSABILITY")]
            _BY_TRAVERSABILITY,

            /// <summary>
            /// <para>By attachment</para>
            /// <para>By attachment—Extends the network diagram one network element level based on structural attachment associations.</para>
            /// <para>按附件 - 基于结构附件关联将网络逻辑示意图扩展一个网元级别。</para>
            /// </summary>
            [Description("By attachment")]
            [GPEnumValue("BY_ATTACHMENT")]
            _BY_ATTACHMENT,

            /// <summary>
            /// <para>By containment</para>
            /// <para>By containment—Extends the network diagram one network element level based on containment associations.</para>
            /// <para>按包含 - 基于包含关联将网络逻辑示意图扩展一个网元级别。</para>
            /// </summary>
            [Description("By containment")]
            [GPEnumValue("BY_CONTAINMENT")]
            _BY_CONTAINMENT,

        }

        public ExtendDiagram SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}